{% load staticfiles %}
 <!DOCTYPE html>
<html class="no-js">
    
    <head>
        <title>云南师范大学选课管理系统</title>
        <!-- Bootstrap -->
        <link href="{% static 'bootstrap/css/bootstrap.min.css' %}" rel="stylesheet" media="screen">
        <link href="{% static 'bootstrap/css/bootstrap-responsive.min.css' %}" rel="stylesheet" media="screen">
        <link href="{% static 'vendors/easypiechart/jquery.easy-pie-chart.css' %}" rel="stylesheet" media="screen">
        <link href="{% static 'assets/styles.css' %}" rel="stylesheet" media="screen">
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <script src="{% static 'vendors/modernizr-2.6.2-respond-1.1.0.min.js' %}"></script>
    </head>
    
    <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="{% url 'index' %}">云南师范大学学生选课管理系统</a>
                    <div class="nav-collapse collapse">
                        <ul class="nav pull-right">
                            <li class="dropdown">
                                {% if request.session.is_login %}
                                    <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> {{ request.session.user_id }} <i class="caret"></i> </a>
                                    <ul class="dropdown-menu">
                                        <li class="divider"></li>
                                        <li><a tabindex="-1" href="{% url 'logout' %}">退出登录</a></li>
                                    </ul>
                                {% else %}
                                    <a href="{% url 'login' %}" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i>未登录<i class="caret"></i></a>
                                    <ul class="dropdown-menu">
                                        <li class="divider"></li>
                                        <li><a tabindex="-1" href="{% url 'login' %}">用户登录</a></li>
                                    </ul>
                                {% endif %}
                        </li>
                    </ul>
                               

                    <ul class="nav">
                        {% if request.session.user_identity == "学生" %}
                        <li><a href="{% url 'studentIndex' %}">{{ request.session.user_name }}</a></li>
                        {% elif request.session.user_identity == "教师" %}
                        <li><a href="{% url 'teacherIndex' %}">{{ request.session.user_name }}</a></li>
                        {% endif %} 
                    </ul>

                    </div>
                    <!--/.nav-collapse -->
                </div>
            </div>
        </div>
        {% block content %}
        
        {% endblock content %}
            <hr>
            <footer>
                <p>&copy; 云南师范大学
            </footer>
        </div>
        <!--/.fluid-container-->
        <script src="{% static 'vendors/jquery-1.9.1.js' %}"></script>
        <script src="{% static 'vendors/jquery-1.9.1.min.js' %}"></script>
        <script src="{% static 'bootstrap/js/bootstrap.min.js' %}"></script>
        <script src="{% static 'vendors/easypiechart/jquery.easy-pie-chart.js' %}"></script>
        <script src="{% static 'assets/scripts.js' %}"></script>
        <script src="{% static 'vendors/datatables/js/jquery.dataTables.min.js' %}"></script>
        <script src="{% static 'assets/DT_bootstrap.js' %}"></script>
        <script>
        $(function() {
            // Easy pie charts
            $('.chart').easyPieChart({animate: 1000});
        });
        </script>
    </body>

</html>

   

